package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsCategoryProperties;
import com.hoshiicloud.goods.entity.goods.GoodsProperties;

import java.util.List;

/**
 * 类目属性
 * @author linjx on 2019/7/25
 */
public interface GoodsCategoryPropertiesService extends IService<GoodsCategoryProperties> {

    /**
     * 根据类目id, 获取该类目下的所有属性id
     */
    List<Long> getProperIdsByCateId(Long id, Long companyId);


    Integer deleteByCategoryId(Long categoryId);

    List<GoodsProperties> listByCategoryId(Long categoryId);

    Boolean saveBatch1(List<GoodsCategoryProperties> list);

}
